package com.rybbaby.tss.front.tssClassRoom.entity;

import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;
import org.hibernate.annotations.GenericGenerator;

import javax.persistence.*;
import java.io.Serializable;
import java.util.Date;

/**
 * @description 教室_操作者视图
 *
 * @author 杨然
 *
 * @createDate 2017年11月8日09:59:15
 */
@Entity
@Table(name = "view_classroom_employee")
@DynamicUpdate(true)
@DynamicInsert(true)
public class ViewClassRoomEmployee implements Serializable {

    private static final long serialVersionUID = 53388145659010L;

    //教室编号
    private String roomId;

    //教室名称
    private String roomName;

    //教室负责人
    private String principal;

    //操作人Id
    private String adminUserId;

    //操作人姓名
    private String userName;

    //修改日期
    private Date updateTime;

    /**
     * 生成get方法
     * */
    @Id
    @GeneratedValue(generator = "view_classroom_employeeIDGenerator" , strategy = GenerationType.AUTO)
    @GenericGenerator(name = "view_classroom_employeeIDGenerator" , strategy = "uuid")
    @Column(name = "roomId", nullable= false, length = 32)
    public String getRoomId() {
        return roomId;
    }

    @Column(name = "roomName", nullable= true, length = 32)
    public String getRoomName() {
        return roomName;
    }

    @Column(name = "principal", nullable= true, length = 32)
    public String getPrincipal() {
        return principal;
    }

    @Column(name = "adminUserId", nullable= true, length = 32)
    public String getAdminUserId() {
        return adminUserId;
    }

    @Column(name = "userName", nullable= true, length = 32)
    public String getUserName() {
        return userName;
    }

    @Column(name = "updateTime", nullable= true, length = 19)
    public Date getUpdateTime() {
        return updateTime;
    }

    /**
     * 生成各属性set方法
     * */
    public void setRoomId(String roomId) {
        this.roomId = roomId;
    }

    public void setRoomName(String roomName) {
        this.roomName = roomName;
    }

    public void setPrincipal(String principal) {
        this.principal = principal;
    }

    public void setAdminUserId(String adminUserId) {
        this.adminUserId = adminUserId;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

}
